package;

#if editer
import game.editer.data.SettingData;
#end
import hx.utils.KeyboardTools;
import openfl.events.Event;
import hx.core.HxmakerApplication;

class Main extends HxmakerApplication {
	public function new() {
		super();
		#if editer
		SettingData.init();
		this.init(GameMain, 0, 0);
		this.stage.color = 0x515053;
		#else
		this.init(GameMain);
		this.stage.color = 0x555555;
		#end
		this.addEventListener(Event.ACTIVATE, onActivate);
		this.addEventListener(Event.DEACTIVATE, onDeactivate);
	}

	private function onActivate(e:Event):Void {
		//
		KeyboardTools.reset();
	}

	private function onDeactivate(e:Event):Void {
		//
		KeyboardTools.reset();
	}
}
